<%@ page import="org.wso2.carbon.registry.info.ui.clients.InfoServiceClient" %>
<%@ page import="org.wso2.carbon.utils.ServerConstants" %>
<%
    String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);

    InfoServiceClient client = null;
    if (request.getParameter("endpoint") != null && request.getParameter("eventName") != null) {
        client = new InfoServiceClient(cookie, config, session);

        String path = request.getParameter("path");
        String endpoint = request.getParameter("endpoint");
        String eventName = request.getParameter("eventName");

        System.out.println("path:\"" + path + "\", endpoint:\"" + endpoint + "\", eventName:\"" + eventName);

        client.subscribe(request);
    }

%>